/**
 * @File name : RoleServiceImpl.java
 * @Description : 
 * @Creator : haifeng17
 * @CreateTime : Mar 31, 2017 2:30:41 PM
 * @Version : 1.0
 * @Update records:
 *      1.1 Mar 31, 2017 by haifeng17: 
 *      1.0 Mar 31, 2017 by haifeng17: Created 
 * All rights served : XXX CORP.
 */
package com.ent.app.bms.service.system.impl;

import java.util.List;
import java.util.Set;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ent.app.bms.bean.SysRole;
import com.ent.app.bms.dao.mapper.SysRoleMapper;
import com.ent.app.bms.service.system.RoleService;

@Service("roleService")
public class RoleServiceImpl implements RoleService{

    @Resource
    private SysRoleMapper roleDao;
    @Override
    public List<SysRole> findRolesByUsername(String username) {
        return roleDao.selectByUsername(username);
    }
    @Override
    public Set<String> findRoleNameSetByUsername(String username) {
        return roleDao.selectRoleNameSetByUsername(username);
    }
    
}
